package ioBug

import (
	"gitee.com/saxon134/workflow/db/qa"
)

type ListRequest struct {
	DemandId int64  `json:"demandId" form:"demandId"`
	Keyword  string `json:"keyword" form:"keyword"`
	Status   int    `json:"status" form:"status"`
	OnlyMe   bool   `json:"onlyMe" form:"onlyMe"`
}

type DetailResponse struct {
	*qa.TblBug
	Disabled struct {
		Title    bool
		Content  bool
		P        map[int]bool
		Status   map[int]bool
		Leader   bool
		Deadline bool
	}
}

type SaveRequest struct {
	*qa.TblBug
	Users []int64 `json:"users"`
}

type UpdateRequest struct {
	BugId int64  `json:"bugId"`
	Key   string `json:"key"`
	Value string `json:"value"`
}
